package com.itheima_02;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo {
    public static void main(String[] args) {
        Collection<String> c=new ArrayList<String>();
        System.out.println(c.add("adfsf"));
        System.out.println(c.add("adfsf142"));
        c.remove("adfsf");
        c.clear();
        System.out.println( c.contains("adfsf"));
        System.out.println(c.isEmpty());
        System.out.println(c.size());
        System.out.println(c);
    }
}
